package com.informix.stream.api.records;

import com.informix.stream.api.IfmxStreamRecord;
import com.informix.stream.common.enums.IfmxStreamRecordType;
import java.nio.ByteBuffer;

public class IfxCDCRollbackTransactionRecord extends IfxCDCRecord implements IfmxStreamRecord {
  public IfxCDCRollbackTransactionRecord(byte[] header) {
    super(IfmxStreamRecordType.ROLLBACK);
    ByteBuffer buffer = ByteBuffer.wrap(header);
    this.sequence = buffer.getLong();
    this.transaction = buffer.getInt();
  }
}
